<?php 
	include '../controllers/machineUpdatetime.php';
	$ibtUpdateLog = getUpdatetime(1);
	$gmatUpdateLog = getUpdatetime(2);
	$greUpdateLog = getUpdatetime(3);
	$ibttime = date("Y-m-d H:i:s",$ibtUpdateLog->getUpdateTime());
	$gmattime = date("Y-m-d H:i:s",$gmatUpdateLog->getUpdateTime());
	$gretime = date("Y-m-d H:i:s",$greUpdateLog->getUpdateTime());
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>“机经”更新日志</title>
<script src="../js/updateLog.js"></script>
</head>
<body>

<a href="javascript:history.back(-1)">返回</a>
<hr />
<table border='2' rules='rows' align="center" cellpadding='8%'>
	<thead>
		<tr align="center">
			<th colspan="2">
			<h1>“机经”更新日志</h1>
			</th>
		</tr>
	</thead>
	<tr align="center">
		<td colspan="2" style='background-color: gray; height:30px;'>iBT更新日志</td>
	<tr>
		<td>
			更新日志
		</td>
		<td>
		<textarea id="ibtContent" rows="6" cols="80"><?php echo str_replace("\t", "", $ibtUpdateLog->content);?></textarea>
		</td>
	</tr>
	<tr>
		<td>
			更新时间
		</td>
		<td>
			<input type="text" size="30" id="ibtupdate" value="<?php echo $ibttime;?>"/>
		</td>
	</tr>
	<tr align="center">
		<td colspan="2">
			<input type="button" name="ibtupdate" value="设置iBT更新日志" onclick="setUpdateTime(1);"/>
		</td>
	</tr>
	
	
	<tr align="center">
		<td colspan="2" style='background-color: gray; height:30px;'>GMAT更新日志</td>
	<tr>
		<td>
			更新日志
		</td>
		<td>
		<textarea id="gmatContent" rows="6" cols="80"><?php echo str_replace("\t", "", $gmatUpdateLog->content);?></textarea>
		</td>
	</tr>
	<tr>
		<td>
			更新时间
		</td>
		<td>
			<input type="text" size="30" id="gmatupdate" value="<?php echo $gmattime;?>"/>
		</td>
	</tr>
	<tr align="center">
		<td colspan="2">
			<input type="button" name="ibtupdate" value="设置GMAT更新日志" onclick="setUpdateTime(2);"/>
		</td>
	</tr>
	
	<tr align="center">
		<td colspan="2" style='background-color: gray; height:30px;'>GRE更新日志</td>
	<tr>
		<td>
			更新日志
		</td>
		<td>
		<textarea id="greContent" rows="6" cols="80"><?php echo str_replace("\t", "", $greUpdateLog->content);?></textarea>
		</td>
	</tr>
	<tr>
		<td>
			更新时间
		</td>
		<td>
			<input type="text" size="30" id="greupdate" value="<?php echo $gretime;?>"/>
		</td>
	</tr>
	<tr align="center">
		<td colspan="2">
			<input type="button" name="greupdate" value="设置GRE更新日志" onclick="setUpdateTime(3);"/>
		</td>
	</tr>

	
</table>
</body>
</html>